package com.ambimmort.shj.action.logmanage;

import com.ambimmort.shj.service.logmanageService.LogmanageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by ma on 2015/7/30.
 */
@Controller("/action/user/query_user_operation_servlet.do")
public class QueryUserOperation {

    @Autowired
    private LogmanageService logmanageService;

    @RequestMapping("/action/user/query_user_operation_servlet.do")
    @ResponseBody
    public String action_queryUserOperation(
            HttpServletRequest request, @RequestParam("json") String json, @RequestParam("username") String username, @RequestParam("starttime")
    String starttime, @RequestParam("endtime") String endtime, @RequestParam("iDisplayLength") String iDisplayLength,
            @RequestParam("iDisplayStart") String iDisplayStart) {

           return logmanageService.queryUserOperation(json,username,starttime,endtime,iDisplayStart,iDisplayLength);
    }
}